package com.yh.service;

import com.yh.pojo.City;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @author yh
 */
@Service
public class CityDubboConsumerService {
    @Reference
    CityDubboService cityDubboService;

    public void printCity() {
        String cityName="郑州";
        City city = cityDubboService.findCityByName(cityName);
        System.out.println(city.toString());
    }
}
